import { WeaTools } from 'ecCom';

//获取盘点表单
export const getInventoryForm = params =>{
	return WeaTools.callApi('/api/cpt/inventory/getForm','GET',params)
}
//执行盘点操作
export const doInventoryOperation = params => {
    return WeaTools.callApi('/api/cpt/inventory/doInventoryOperation', 'GET', params);
}
//获取盘点列表数据
export const getCptInventoryList = params => {
    return WeaTools.callApi('/api/cpt/inventory/getList', 'GET', params);
}

//获取盘点列表明细数据
export const getCptInventoryPlanList = params => {
    return WeaTools.callApi('/api/cpt/inventory/getPlanList', 'GET', params);
}

//获取盘点列表资产明细数据
export const getCptInventoryPlanCptList = params => {
    return WeaTools.callApi('/api/cpt/inventory/getPlanCptList', 'GET', params);
}

//获取盘点列表资产明细数据
export const getMyPlanCptList = params => {
    return WeaTools.callApi('/api/cpt/inventory/getMyPlanCptList', 'GET', params);
}

//高级搜索 condition
export const getSearchCondition = params => {
	return WeaTools.callApi('/api/cpt/capitalsearch/condition', 'GET', params);
}

//插入资产到列表
export const addCptToList = params => {
	return WeaTools.callApi('/api/cpt/inventory/addCptToList', 'GET', params);
}

//插入资产到列表
export const searchCptForInventory = params => {
	return WeaTools.callApi('/api/cpt/inventory/searchCpt', 'GET', params);
}


//开始盘点
export const startInventory = params => {
	return WeaTools.callApi('/api/cpt/inventory/startInventory', 'GET', params);
}

//复制盘点
export const copyInventory = params => {
	return WeaTools.callApi('/api/cpt/inventory/copyInventory', 'GET', params);
}

//强制完成
export const finishInventory = params => {
	return WeaTools.callApi('/api/cpt/inventory/finishInventory', 'GET', params);
}


//提交盘点已完成的盘点表
export const onSubmit = params => {
	return WeaTools.callApi('/api/cpt/inventory/onSubmit', 'GET', params);
}

//获取盘点总表数据
export const getPlanMianList = params => {
    return WeaTools.callApi('/api/cpt/inventory/getList', 'GET', params);
}

//盘点
export const doInventory = params => {
    return WeaTools.callApi('/api/cpt/inventory/doInventory', 'GET', params);
}

//总表导出
export const exportMain = params => {
    return WeaTools.callApi('/api/cpt/inventory/exportMain', 'GET', params);
}

//导入盘点
export const doImportInventory = params => {
    return WeaTools.callApi('/api/cpt/inventory/doCptimpoptInventory', 'POST', params);
}

//导入盘点- 生成模板
export const generateFile = params => {
    return WeaTools.callApi('/api/cpt/inventory/generateFile', 'GET', params);
}

//盘点计划导入
export const inventoryListImp = params => {
    return WeaTools.callApi('/api/cpt/inventory/inventoryListImp', 'POST', params);
}

